# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=grcov
pkgver=0.8.7
pkgrel=0
pkgdesc="Rust tool to collect and aggregate code coverage data"
url="https://github.com/mozilla/grcov"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # Limited by cargo
license="MPL-2.0"
depends="gcc" # gcov
makedepends="cargo"
options="net !check" # Failing due to utf-8 (locale?)
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/grcov/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --locked --verbose
}

check() {
	cargo test --release --locked --verbose
}

package() {
	install -Dm0755 target/release/grcov -t "$pkgdir"/usr/bin
}

sha512sums="
543f45b32225e85ebe1a5953ba9170a5a54911b9d6e227cef6e5acbb357024c406b90daa4186fcae57062955b92b379b55401a2f072faefba64268ef097d1b91  grcov-0.8.7.tar.gz
"
